<extend name="index" />
<block name="js"> 
	<script type="text/javascript">
	$(function() {
		//添加pop弹出层
		var t9 = new PopupLayer({
			trigger : "#addArticleClassBtn",
			popupBlk : "#addArticleClassDiv",
			closeBtn : "#addArticleClassCloseBtn",
			useOverlay : true,
			useFx : true,
			offsets : {
				x : 0,
				y : -41
			}
		});
		t9.doEffects = function(way) {
			if (way == "open") {
				this.popupLayer
						.css({
							opacity : 0.3
						})
						.show(
								400,
								function() {
									this.popupLayer
											.animate(
													{
														left : ($(document)
																.width() - this.popupLayer
																.width()) / 2,
														top : (document.documentElement.clientHeight - this.popupLayer
																.height())
																/ 2
																+ $(document)
																		.scrollTop(),
														opacity : 0.8
													}, 1000, function() {
														this.popupLayer.css(
																"opacity", 1)
													}.binding(this));
								}.binding(this));
			} else {
				this.popupLayer.animate({
					left : this.trigger.offset().left,
					top : this.trigger.offset().top,
					opacity : 0.1
				}, {
					duration : 500,
					complete : function() {
						this.popupLayer.css("opacity", 1);
						this.popupLayer.hide()
					}.binding(this)
				});
			}
		}
	});
	</script>
</block>
<block name="addArticleClass"><a href="javascript:void(0);"
	style="display: inline-block; text-align: right; width: 160px;" id="addArticleClassBtn">添加分类</a>
</block>
<block name="addArticleClassDiv">
<div id="addArticleClassDiv" style="width:300px;background-color:#41581B;padding:20px;">
							<div style="margin:-10px 0 0 290px;cursor:pointer;" id="addArticleClassCloseBtn">X</div>
						<form action="{:U('addArticleClass')}" method="get">
							<P>
								分类名称：<input type="text" name="name" />
							</P>
							<p>
								分类描述：<input type="text" name="description" />
							</p>
							<p><input type="submit" value="提交" /></p>
						</form>
					</div>
</block>
